package com.yami.shop.bean.enums;

/**
 * @author chendt
 * @date 2021/5/13 16:52
 */
public enum ShopWithdrawCashStatus {
    /**
     * 审核中
     */
    WAITAUDIT(0),
    /**
     * 审核成功
     */
    SUCCESSAUDIT(1),

    /**
     * 审核失败
     */
    FAILAUDIT(-1);

    private Integer num;

    public Integer value() {
        return num;
    }

    ShopWithdrawCashStatus(Integer num) {
        this.num = num;
    }

    public static ShopWithdrawCashStatus instance(Integer value) {
        ShopWithdrawCashStatus[] enums = values();
        for (ShopWithdrawCashStatus statusEnum : enums) {
            if (statusEnum.value().equals(value)) {
                return statusEnum;
            }
        }
        return null;
    }
}
